local indulgenceMoveSkill = fk.CreateSkill {
  name = "#indulgenceMoveSkill",
  tags = { Skill.Compulsory, },
}

-- indulgenceMoveSkill:addEffect(fk.BeforeCardsMove, {
  --   name = "#indulgenceMoveSkill",
  --   anim_type = "support",
  --   frequency = Skill.Compulsory,
  --   events = {fk.BeforeCardsMove},
  --   can_trigger = function (self, event, target, player, data) 
  --     if not player:hasSkill(indulgenceMoveSkill.name) then return end
  --     for _, move in ipairs(data) do
  --       if move.from and move.from == player and move.toArea ~= Card.Processing then
  --         for _, info in ipairs(move.moveInfo) do
  --           local card = Fk:getCardById(info.cardId)
  --           if card.name == "wdtx__indulgence" and info.fromArea == Card.PlayerJudge then event:setCostData(self, info.cardId return true end)
  --         end
  --       end
  --     end
  --   end,
  --   on_use = function(self, event, target, player, data)
  --     local room = player.room
  --     room:handleAddLoseSkills(player, "-#indulgenceMoveSkill", nil, false)
  --     room:setPlayerMark(player,"@indulgence_num",0)
  --   end,
  --
-- })


return indulgenceMoveSkill